package com.xinnet.mms.deptproduct.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinnet.mms.deptproduct.dao.DeptProductDao;
import com.xinnet.mms.deptproduct.service.DeptProductService;
import com.xinnet.mms.entity.Product;

@Service("deptProductService")
public class DeptProductServiceImpl implements DeptProductService{

	@Autowired
	DeptProductDao deptProductDao;
	
	@Override
	public List<Product> getProductListByDeptIdStr(String deptIdStr) {
		
		return deptProductDao.getProductListByDeptIdStr(deptIdStr);
	}
	
	@Override
	public List<Product> getProductList() {
		
		return deptProductDao.getProductList();
	}

}
